package com.syn.synold4s.bean.dto;

import androidx.annotation.NonNull;
import androidx.room.Entity;

import com.gaoyi.basemodule.basebean.BaseEntity;

import java.util.Date;
import java.util.List;

import kotlin.jvm.Transient;

public class CctvDto extends BaseEntity {

    private List<CCTVModel> cctv;
    int pageIndex;
    int pageSize;
    int totalCount;
    int totalPages;

    public List<CCTVModel> getCctv() {
        return cctv;
    }

    public void setCctv(List<CCTVModel> cctv) {
        this.cctv = cctv;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    @Override
    public String toString() {
        return "CctvDto{" +
                "cctv=" + cctv +
                ", pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", totalCount=" + totalCount +
                ", totalPages=" + totalPages +
                '}';
    }

    public class CCTVModel extends BaseEntity {
        private String flvUrl;
        private String name;
        private int sort;
        private String code;
        private String cnName;
        private String enName;
        private String ipAddress;
        private int port;
        private String userName;
        private String passWord;
        private int state;
        private String cameraSvrSn;
        private String city;
        private String region;
        private String area;
        private String stateName;
        private Date portalAt;
        private String createdAt;

        public String getFlvUrl() {
            return flvUrl;
        }

        public void setFlvUrl(String flvUrl) {
            this.flvUrl = flvUrl;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getCnName() {
            return cnName;
        }

        public void setCnName(String cnName) {
            this.cnName = cnName;
        }

        public String getEnName() {
            return enName;
        }

        public void setEnName(String enName) {
            this.enName = enName;
        }

        public String getIpAddress() {
            return ipAddress;
        }

        public void setIpAddress(String ipAddress) {
            this.ipAddress = ipAddress;
        }

        public int getPort() {
            return port;
        }

        public void setPort(int port) {
            this.port = port;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getPassWord() {
            return passWord;
        }

        public void setPassWord(String passWord) {
            this.passWord = passWord;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getCameraSvrSn() {
            return cameraSvrSn;
        }

        public void setCameraSvrSn(String cameraSvrSn) {
            this.cameraSvrSn = cameraSvrSn;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public Date getPortalAt() {
            return portalAt;
        }

        public void setPortalAt(Date portalAt) {
            this.portalAt = portalAt;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        @Override
        public String toString() {
            return "CCTVModel{" +
                    "flvUrl='" + flvUrl + '\'' +
                    ", name='" + name + '\'' +
                    ", sort=" + sort +
                    ", code='" + code + '\'' +
                    ", cnName='" + cnName + '\'' +
                    ", enName='" + enName + '\'' +
                    ", ipAddress='" + ipAddress + '\'' +
                    ", port=" + port +
                    ", userName='" + userName + '\'' +
                    ", passWord='" + passWord + '\'' +
                    ", state=" + state +
                    ", cameraSvrSn='" + cameraSvrSn + '\'' +
                    ", city='" + city + '\'' +
                    ", region='" + region + '\'' +
                    ", area='" + area + '\'' +
                    ", stateName='" + stateName + '\'' +
                    ", portalAt=" + portalAt +
                    ", createdAt=" + createdAt +
                    '}';
        }
    }
}
